<!-- components/ResultWelcome.vue -->
<template>
  <el-result
    icon="search"
    title="欢迎使用商品搜索中心"
    sub-title="请输入关键词开始搜索商品"
  >
    <template #extra>
      <el-button type="primary" @click="$emit('focus')">立即开始</el-button>
      <el-button type="info" @click="$emit('demo', 'wakuku')"
        >搜索: wakuku</el-button
      >
    </template>
  </el-result>
</template>

<script setup>
defineEmits(["focus", "demo"]);
</script>
